package org.example.core.mysql.enums;

/**
 * 操作符
 */
public enum SqlOperatorEnum {

    EQUAL("="),
    NOT_EQUAL("<>"),
    LIKE("like"),
    IN("in"),
    AND("and"),
    OR("or"),
    LEFT_BRACKET("("),
    RIGHT_BRACKET(")"),
    LESS_THEN("<"),
    RIGHT_THEN(">"),
    LESS_EQUAL_THEN("<="),
    RIGHT_EQUAL_THEN(">="),
    BETWEEN("between"),
    LIMIT("limit"),
    COMMA(","),
    ORDER_BY("order by");

    private String code;

    SqlOperatorEnum(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return this.code;
    }
}
